package com.duguo.dynamicmvc.view;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.duguo.dynamicmvc.model.Model;
import com.duguo.dynamicmvc.support.ModelAndView;
import com.duguo.dynamicmvc.support.ModelAndViewImpl;

public class RenderedView implements View {

	public final static View RENDERED_VIEW=new RenderedView();
	public final static ModelAndView RENDERED_MODEL_AND_VIEW=new ModelAndViewImpl(RENDERED_VIEW);
	
	private RenderedView(){}

	public String getViewName() {
		return getClass().getSimpleName();
	}

	public void render(HttpServletRequest request,
			HttpServletResponse response, Model model) throws Exception {
		// do nothing
	}
}
